package com.zmn.plat.persistence.interfaces.base.difficult.ratio;

import java.util.List;

import com.zmn.plat.model.entity.base.difficult.ratio.DifficultRatio;
import com.zmn.plat.model.entity.base.difficult.ratio.DifficultRatioQuery;
import org.apache.ibatis.annotations.Param;


/**
 * 基础城市系数

 * 
 * @author linfeng
 *
 * @since 2020-06-15 11:29:36
 */
public interface DifficultRatioDao {

    /**
     * 查询
     * @param difficultId ID
     * @return
     */
    DifficultRatio findByKey(Integer difficultId);


    /**
     * 分页搜索
     * @param query 条件
     * @return 列表
     */
    List<DifficultRatio> listPageByQuery(DifficultRatioQuery query);

    /**
     * 搜索
     * @param query 条件
     * @return
     */
    List<DifficultRatio> listByQuery(DifficultRatioQuery query);

    /**
     * 所有数据
     * @return
     */
    List<DifficultRatio> listAll();

    /**
     * 统计
     * @param query 条件
     * @return
     */
    Integer countByQuery(DifficultRatioQuery query);
    /**
     * 更新
     * @param difficultRatio
     * @return
     */
    Integer updateByKey(DifficultRatio difficultRatio);


    /**
     * 插入
     * @param difficultRatio
     * @return
     */
    Integer insert(DifficultRatio difficultRatio);


    /**
     * 删除
     * @param ratioId ID
     * @return
     */
    Integer deleteByKey(Integer ratioId);

    /**
     * 批量删除
     * @param difficultIds
     * @return
     */
    Integer deleteByKeys(@Param("difficultIds") List<Integer> difficultIds);
}
